package com.sharif.cn;

import org.springframework.boot.ApplicationRunner;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingClass;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;

@Component
@ConditionalOnMissingClass({"org.springframework.web.reactive.DispatcherHandler","org.springframework.web.servlet.DispatcherServlet"})
public class AutoConfiguration {

    @Bean
    public ApplicationRunner createApplicationRunner()
    {
        return (arguments)-> System.out.println("HelloWorld");
    }
}